package com.example.demo.service;

import com.example.demo.bean.Good;

import java.math.BigDecimal;

/**
 * @ClassName: BuyService
 * @Description: 购买策略
 * @Author: Administrator
 * @Date: Created in 2022/11/19 15:46
 */
public abstract class BuyStrategy {

    protected abstract BigDecimal calculate(Good good, BigDecimal num) throws Exception;

}
